package com.gitee.zhanyao.api.security.api;

import com.gitee.zhanyao.api.security.model.OAuth2User;
import com.gitee.zhanyao.api.security.model.OAuth2UserDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhanyao
 */
@RequestMapping("/security/user")
public interface UserApi {

    /**
     * 获取当前登录用户信息
     * @return
     */
    @GetMapping("/currentUser")
    OAuth2UserDTO currentUser();

}
